package org.edu.modules.survey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


@TableName("ve_addons_survey_user")
@ApiModel(value = "ve_addons_survey_user对象", description = "用户问卷")
public class VeAddonsSurveyUser
        implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("用户id")
    private Integer userid;
    @ApiModelProperty("问卷id")
    private Integer surveyid;

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setId(Integer id) {
        this.id = id;
        return this;
    }

    @ApiModelProperty("答卷时间")
    private Integer createtime;
    @ApiModelProperty("终端")
    private Integer terminalid;
    @ApiModelProperty("应用")
    private Integer appid;
    @ApiModelProperty("模块")
    private String module;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setUserid(Integer userid) {
        this.userid = userid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setSurveyid(Integer surveyid) {
        this.surveyid = surveyid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setCreatetime(Integer createtime) {
        this.createtime = createtime;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setTerminalid(Integer terminalid) {
        this.terminalid = terminalid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setAppid(Integer appid) {
        this.appid = appid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setModule(String module) {
        this.module = module;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyUser setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeAddonsSurveyUser(id=" + getId() + ", userid=" + getUserid() + ", surveyid=" + getSurveyid() + ", createtime=" + getCreatetime() + ", terminalid=" + getTerminalid() + ", appid=" + getAppid() + ", module=" + getModule() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.survey.entity.VeAddonsSurveyUser)) return false;
        org.edu.modules.survey.entity.VeAddonsSurveyUser other = (org.edu.modules.survey.entity.VeAddonsSurveyUser) o;
        if (!other.canEqual(this)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$userid = getUserid(), other$userid = other.getUserid();
        if ((this$userid == null) ? (other$userid != null) : !this$userid.equals(other$userid)) return false;
        Object this$surveyid = getSurveyid(), other$surveyid = other.getSurveyid();
        if ((this$surveyid == null) ? (other$surveyid != null) : !this$surveyid.equals(other$surveyid)) return false;
        Object this$createtime = getCreatetime(), other$createtime = other.getCreatetime();
        if ((this$createtime == null) ? (other$createtime != null) : !this$createtime.equals(other$createtime))
            return false;
        Object this$terminalid = getTerminalid(), other$terminalid = other.getTerminalid();
        if ((this$terminalid == null) ? (other$terminalid != null) : !this$terminalid.equals(other$terminalid))
            return false;
        Object this$appid = getAppid(), other$appid = other.getAppid();
        if ((this$appid == null) ? (other$appid != null) : !this$appid.equals(other$appid)) return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        if ((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId)) return false;
        Object this$module = getModule(), other$module = other.getModule();
        return !((this$module == null) ? (other$module != null) : !this$module.equals(other$module));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.survey.entity.VeAddonsSurveyUser;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $userid = getUserid();
        result = result * 59 + (($userid == null) ? 43 : $userid.hashCode());
        Object $surveyid = getSurveyid();
        result = result * 59 + (($surveyid == null) ? 43 : $surveyid.hashCode());
        Object $createtime = getCreatetime();
        result = result * 59 + (($createtime == null) ? 43 : $createtime.hashCode());
        Object $terminalid = getTerminalid();
        result = result * 59 + (($terminalid == null) ? 43 : $terminalid.hashCode());
        Object $appid = getAppid();
        result = result * 59 + (($appid == null) ? 43 : $appid.hashCode());
        Object $placeId = getPlaceId();
        result = result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
        Object $module = getModule();
        return result * 59 + (($module == null) ? 43 : $module.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public Integer getUserid() {
        /* 40 */
        return this.userid;
    }

    public Integer getSurveyid() {
        /* 43 */
        return this.surveyid;
    }

    public Integer getCreatetime() {
        /* 46 */
        return this.createtime;
    }

    public Integer getTerminalid() {
        return this.terminalid;
    }

    public Integer getAppid() {
        /* 52 */
        return this.appid;
    }

    public String getModule() {
        /* 55 */
        return this.module;
    }

    public Integer getPlaceId() {
        /* 58 */
        return this.placeId;
    }
}



